package edu.hwadee.BEIS.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * AnalysisDiagram entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "analysis_diagram", catalog = "beis")

public class AnalysisDiagram implements java.io.Serializable {

	// Fields

	private Integer analysisDiagramId;
	private ProjectDeclare projectDeclare;
	private String analysisDiagramFile;
	private String analysisFeedback;
	private String poster;
	private String feedbackLeader;

	// Constructors

	/** default constructor */
	public AnalysisDiagram() {
	}

	/** full constructor */
	public AnalysisDiagram(ProjectDeclare projectDeclare, String analysisDiagramFile, String analysisFeedback,
			String poster, String feedbackLeader) {
		this.projectDeclare = projectDeclare;
		this.analysisDiagramFile = analysisDiagramFile;
		this.analysisFeedback = analysisFeedback;
		this.poster = poster;
		this.feedbackLeader = feedbackLeader;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")

	@Column(name = "analysis_diagram_id", unique = true, nullable = false)

	public Integer getAnalysisDiagramId() {
		return this.analysisDiagramId;
	}

	public void setAnalysisDiagramId(Integer analysisDiagramId) {
		this.analysisDiagramId = analysisDiagramId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "project_declare_id", nullable = false)

	public ProjectDeclare getProjectDeclare() {
		return this.projectDeclare;
	}

	public void setProjectDeclare(ProjectDeclare projectDeclare) {
		this.projectDeclare = projectDeclare;
	}

	@Column(name = "analysis_diagram_file", nullable = false, length = 100)

	public String getAnalysisDiagramFile() {
		return this.analysisDiagramFile;
	}

	public void setAnalysisDiagramFile(String analysisDiagramFile) {
		this.analysisDiagramFile = analysisDiagramFile;
	}

	@Column(name = "analysis_feedback", nullable = false, length = 200)

	public String getAnalysisFeedback() {
		return this.analysisFeedback;
	}

	public void setAnalysisFeedback(String analysisFeedback) {
		this.analysisFeedback = analysisFeedback;
	}

	@Column(name = "poster", nullable = false, length = 10)

	public String getPoster() {
		return this.poster;
	}

	public void setPoster(String poster) {
		this.poster = poster;
	}

	@Column(name = "feedback_leader", nullable = false, length = 10)

	public String getFeedbackLeader() {
		return this.feedbackLeader;
	}

	public void setFeedbackLeader(String feedbackLeader) {
		this.feedbackLeader = feedbackLeader;
	}

}